#ifndef BDMDELEGATE_H
#define BDMDELEGATE_H

#include <QStyledItemDelegate>
#include <QObject>

class BdmDelegate : public QStyledItemDelegate
{
    Q_OBJECT
public:
    explicit BdmDelegate(QObject *parent = nullptr);

    // QAbstractItemDelegate interface
public:
    void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const override;
    QSize sizeHint(const QStyleOptionViewItem &option, const QModelIndex &index) const override;
    QWidget *createEditor(QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const override;
    void setEditorData(QWidget *editor, const QModelIndex &index) const override;
    void setModelData(QWidget *editor, QAbstractItemModel *model, const QModelIndex &index) const override;
};

#endif // BDMDELEGATE_H
